<%--@elvariable id="project" type="com.weitu.threeSimultaneities.projectInfo.entity.Project"--%>
<%--@elvariable id="managerAudit" type="com.weitu.contractor.entity.ManagerAudit"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>承包商资质审查添加</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/managerAudit/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">承包商名称:</label>
                    <input id="contractorAuditName" name="contractorAuditName" type="text" value="${managerAudit.contractorAudit.contractorName}" style="width:240px;">
                    <input id="contractorAuditId" name="contractorAuditId" class="hide" type="hidden" value="${managerAudit.contractorAudit.id}">
                    <input id="contractorId" name="contractorId" class="hide" type="hidden" value="${managerAudit.contractorAudit.contractorId}">
                    <input id="id" name="id" class="hide" type="hidden" value="${param.id}">
                </div>
                <div class="form_one">
                    <label class="lable-style">承包商类型:</label>
                    <input id="contractorTypeName" name="contractorTypeName" class="easyui-textbox" value="${managerAudit.contractorAudit.contractorTypeName}" data-options="readonly:true" type="text" style="width: 240px;">
                    <input id="contractorTypeId" name="contractorTypeId" class="hide" value="${managerAudit.contractorAudit.contractorTypeId}" type="hidden">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目名称:</label>
                    <input id="projectName" name="projectName" value="${project.name}" type="text" style="width:240px;">
                    <input id="projectId" name="projectId" value="${project.id}" type="hidden" style="width:240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>项目经理资质</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">项目经理:</label>
                    <input id="managerName" name="managerName" value="${managerAudit.contractorStaff.name}" type="text" style="width:240px;">
                    <input id="managerId" name="managerId" value="${managerAudit.contractorStaff.id}" type="hidden" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">资格证书编号:</label>
                    <input id="certCode_manager" name="managerCertCode" value="${managerAudit.managerCert.certCode}" type="text" class="easyui-textbox"
                           data-options="readonly:true,required:true" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">有效开始日期:</label>
                    <input id="validStartDate_manager" name="validStartDate" value="${managerAudit.managerCert.validStartDate}" type="text" class="easyui-datebox"
                           data-options="readonly:true,required:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">有效结束日期:</label>
                    <input id="validEndDate_manager" name="validEndDate" value="${managerAudit.managerCert.validStartDate}" type="text" class="easyui-datebox"
                           data-options="readonly:true,required:true" style="width: 240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>HSE协议书</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="uploadUserId" type="java.lang.String"--%>
                    <%--@elvariable id="accessoryList" type="java.util.List"--%>
                        <c:if test="${param.state == 'edit'}">
                            <accessory:accessorySimple permission="write" packageKey="hse_agreement" packageInfos="${accessoryList}" uploadUserId="${uploadUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                        </c:if>
                        <c:if test="${param.state == 'view'}">
                            <accessory:accessorySimple packageKey="hse_agreement" packageInfos="${accessoryList}" uploadUserId="${uploadUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                        </c:if>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
